package com.s63.appinfo.controller;

import com.s63.appinfo.pojo.AjaxResult;
import com.s63.appinfo.service.AppCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/appCategory")
public class AppCategoryController {
    @Autowired
    private AppCategoryService appCategoryService;

    @GetMapping("/getByParentId")
    public AjaxResult getByParentId(Long parentId) {
        return AjaxResult.ok(appCategoryService.getByParentId(parentId));
    }
}
